/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Programas_En_Clase;

/**
 *
 * @author gurrola
 */
public class Conversion_with_String {

         public static void main(String[] args) {

                  String cad="190";
                  int w;
                  boolean bool;

                  w=Integer.parseInt(cad);
                  System.out.println("String " + w);

                  Double e = new Double(w);
                  
                  Byte b = new Byte(e.byteValue());
                  System.out.println("byte " + b);

                  Float f = new Float(b.floatValue());
                  System.out.println("float " + f);

                  Integer i = new Integer(f.intValue());
                  System.out.println("int " + i);

                  Short s = new Short(i.shortValue());
                  System.out.println("short " + s);

       
                  Long l= new Long(s.longValue());
                  System.out.println("long " + l);

       
                  bool = Boolean.parseBoolean(cad);
                  System.out.println("boolean " + bool);
      
     }

}
